-- GENERATED SPELL FOR [Crimson Elite] --


function spell0_12128(pUnit, Event) --@Crusader Strike,n/a--
pUnit:FullCastSpellOnTarget(14518,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12128', 30295, 1)
end

function spell1_12128(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(17143,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12128', 649, 1)
end

function spell2_12128(pUnit, Event) --@Retribution Aura,Self--
pUnit:FullCastSpellOnTarget(8990,pUnit)
pUnit:RegisterEvent('Sorts_12128', 565, 1)
end

function Sorts_12128(pUnit, Event)
local choix_sorts_12128 = math.random(0, 2)
if choix_sorts_12128 == 0 then
pUnit:RegisterEvent('spell0_12128', 1, 1)
end
if choix_sorts_12128 == 1 then
pUnit:RegisterEvent('spell1_12128', 1, 1)
end
if choix_sorts_12128 == 2 then
pUnit:RegisterEvent('spell2_12128', 1, 1)
end
end

function mob12128_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12128', math.random(1500, 3000), 1)
end

function mob12128_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12128_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12128_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12128, 1, 'mob12128_Action')
RegisterUnitEvent(12128, 2, 'mob12128_Leave')
RegisterUnitEvent(12128, 3, 'mob12128_Kill')
RegisterUnitEvent(12128, 4, 'mob12128_Die')
